package com.happe.foodeasy.manage.service;

import com.happe.foodeasy.manage.dto.CommodityBaseDTO;
import com.happe.foodeasy.manage.dto.ImagePhotoDTO;
import com.happe.foodeasy.manage.dto.TypeAndStatusDTO;
import com.happe.foodeasy.manage.commodity.entity.CommodityBaseEntity;

import java.util.List;

public interface CommodityBaseService {
    long selectLastLineId();

    void save(CommodityBaseDTO commodityBaseDTO, ImagePhotoDTO imagePhotoDTO);

    List<CommodityBaseEntity> selectAllByTypeAndStatus(TypeAndStatusDTO typeAndStatusDTO);

    List<CommodityBaseEntity> selectFirstTypeAndStatusValidCommodity();
}
